package cn.lingyangwl.agile.food.core.model.rqrs.cart;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import cn.lingyangwl.agile.food.model.constants.ShopCons;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 购物车
 *
 * @author shenguangyang
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "购物车查询实体")
public class CartListReq {
    /**
     * @see ShopCons.GoodsType
     */
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "购物车类型: 0外卖, 1店内(打包带走/店内就餐)")
    private String cartType;

    /**
     * @see ShopCons.DeliveryWay
     */
    @ApiModelProperty(value = "配送方式")
    private String deliveryWay;

    private List<Long> cartIds;

    private Long tableId;
}
